<script lang="ts" setup>
import { onMounted, ref } from "vue";
import { useRoute } from "vue-router";
import pageHeader from "@/components/pageHeader.vue";
const route = useRoute();
const game_url = ref(null);

onMounted(() => {
  // https://gci.b777752.com/forwardGame.do?params=bJJ7qozamLJ8HT+4YobGbMqkB+eu7hBfQlpAQQq4Z26UXDymORFL+aHTvOKGVHz+knvRkb7EF1esGIhNVwvCDXCXpv0WTgrhCSR2PHTsgKsRSLyptPFV5wDMXfuk4UwRDnlYTGgQOXXzYdJ/kNiu5yXsUt5bMZOIGJu+NZpjpc7xYPMawFA+XqQtbguQ0nfskukOj/2L/toSx5ugXFQIJDtnjDaT5hK8q0TNZejwye15SitNKDxo9JtfZtHjpcr17l1L022MuII=&key=27bd9902b18590d39fdaa5b7eedfb618
  if (route.query.game_url) {
    console.log("game_url", route.query.game_url);
    game_url.value = "/proxy/" + encodeURIComponent(route.query.game_url);
  }
});
</script>

<template>
  <div class="page">
    <pageHeader>
      <template #title></template>
      <template #right
        ><img class="rightInfo" src="@/assets/images/Infrmation-Circle.svg"
      /></template>
    </pageHeader>
    <div class="content">
      <iframe
        :src="game_url"
        width="100%"
        height="620"
        frameborder="0"
        allowfullscreen
      ></iframe>
    </div>
  </div>
</template>

<style scoped lang="scss">
@import "@/assets/style/constant.scss";
.page {
  width: 100%;
  min-height: 100vh;
  background-color: #1a2c38;
  .content {
    padding-top: 90 * $_ru;
  }
}
</style>
